import {Config} from '../../utils/Config.js'
import Https from '../../utils/Https'
class Model extends Https {
    //获取课程列表数据
    getlesson(id) {
        let url = Config.lesson_url
        let data = {id}
        return this.https_req6({url, data})
    }
    //获取评论数据
    sendcomment({openid,lesson_id,content}) {
        let url = Config.add_comment_url
        let data = {
            openid,
            lesson_id,
            content
        }
        let method = 'POST'
        return this.https_req6({url, data,method})
    }
    
}
export default Model